home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13409 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 6d 63 73 2e 6e |Path: ne|ws.mcs.n|
|00000010| 65 74 21 75 73 65 6e 65 | 74 0a 46 72 6f 6d 3a 20 |et!usene|t.From: |
|00000020| 45 72 79 71 20 3c 65 72 | 79 71 40 72 68 69 6e 65 |Eryq <er|yq@rhine|
|00000030| 2e 67 73 66 63 2e 6e 61 | 73 61 2e 67 6f 76 3e 0a |.gsfc.na|sa.gov>.|
|00000040| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000050| 2e 6c 61 6e 67 2e 63 2b | 2b 2c 63 6f 6d 70 2e 6c |.lang.c+|+,comp.l|
|00000060| 61 6e 67 2e 70 65 72 6c | 2e 6d 69 73 63 0a 53 75 |ang.perl|.misc.Su|
|00000070| 62 6a 65 63 74 3a 20 52 | 65 3a 20 70 61 74 74 65 |bject: R|e: patte|
|00000080| 72 6e 20 6d 61 74 63 68 | 69 6e 67 20 69 6e 20 43 |rn match|ing in C|
|00000090| 2b 2b 0a 44 61 74 65 3a | 20 4d 6f 6e 2c 20 32 35 |++.Date:| Mon, 25|
|000000a0| 20 4d 61 72 20 31 39 39 | 36 20 31 31 3a 32 33 3a | Mar 199|6 11:23:|
|000000b0| 35 35 20 2d 30 36 30 30 | 0a 4f 72 67 61 6e 69 7a |55 -0600|.Organiz|
|000000c0| 61 74 69 6f 6e 3a 20 48 | 75 67 68 65 73 20 53 54 |ation: H|ughes ST|
|000000d0| 58 20 43 6f 72 70 6f 72 | 61 74 69 6f 6e 0a 4d 65 |X Corpor|ation.Me|
|000000e0| 73 73 61 67 65 2d 49 44 | 3a 20 3c 33 31 35 36 44 |ssage-ID|: <3156D|
|000000f0| 36 41 42 2e 32 33 30 32 | 30 39 30 34 40 72 68 69 |6AB.2302|0904@rhi|
|00000100| 6e 65 2e 67 73 66 63 2e | 6e 61 73 61 2e 67 6f 76 |ne.gsfc.|nasa.gov|
|00000110| 3e 0a 52 65 66 65 72 65 | 6e 63 65 73 3a 20 3c 34 |>.Refere|nces: <4|
|00000120| 6a 35 30 6f 74 24 67 6e | 36 40 62 6f 62 63 61 74 |j50ot$gn|6@bobcat|
|00000130| 2e 63 73 75 73 6d 2e 65 | 64 75 3e 0a 4e 4e 54 50 |.csusm.e|du>.NNTP|
|00000140| 2d 50 6f 73 74 69 6e 67 | 2d 48 6f 73 74 3a 20 65 |-Posting|-Host: e|
|00000150| 72 79 71 2e 70 72 2e 6d | 63 73 2e 6e 65 74 0a 4d |ryq.pr.m|cs.net.M|
|00000160| 69 6d 65 2d 56 65 72 73 | 69 6f 6e 3a 20 31 2e 30 |ime-Vers|ion: 1.0|
|00000170| 0a 43 6f 6e 74 65 6e 74 | 2d 54 79 70 65 3a 20 74 |.Content|-Type: t|
|00000180| 65 78 74 2f 70 6c 61 69 | 6e 3b 20 63 68 61 72 73 |ext/plai|n; chars|
|00000190| 65 74 3d 75 73 2d 61 73 | 63 69 69 0a 43 6f 6e 74 |et=us-as|cii.Cont|
|000001a0| 65 6e 74 2d 54 72 61 6e | 73 66 65 72 2d 45 6e 63 |ent-Tran|sfer-Enc|
|000001b0| 6f 64 69 6e 67 3a 20 37 | 62 69 74 0a 58 2d 4d 61 |oding: 7|bit.X-Ma|
|000001c0| 69 6c 65 72 3a 20 4d 6f | 7a 69 6c 6c 61 20 32 2e |iler: Mo|zilla 2.|
|000001d0| 30 20 28 58 31 31 3b 20 | 49 3b 20 4c 69 6e 75 78 |0 (X11; |I; Linux|
|000001e0| 20 31 2e 31 2e 31 38 20 | 69 34 38 36 29 0a 54 6f | 1.1.18 |i486).To|
|000001f0| 3a 20 54 6f 64 64 20 46 | 65 64 65 72 6d 61 6e 20 |: Todd F|ederman |
|00000200| 3c 66 65 64 65 72 30 30 | 31 40 6d 61 69 6c 68 6f |<feder00|1@mailho|
|00000210| 73 74 2e 63 73 75 73 6d | 2e 65 64 75 3e 0a 0a 54 |st.csusm|.edu>..T|
|00000220| 6f 64 64 20 46 65 64 65 | 72 6d 61 6e 20 77 72 6f |odd Fede|rman wro|
|00000230| 74 65 3a 0a 3e 20 0a 3e | 20 20 20 20 48 6f 77 20 |te:.> .>| How |
|00000240| 64 6f 20 79 6f 75 20 64 | 6f 20 70 65 72 6c 2d 74 |do you d|o perl-t|
|00000250| 79 70 65 20 70 61 74 74 | 65 72 6e 20 6d 61 74 63 |ype patt|ern matc|
|00000260| 68 69 6e 67 20 69 6e 20 | 43 2b 2b 3f 20 49 27 6d |hing in |C++? I'm|
|00000270| 20 77 72 69 74 69 6e 67 | 20 43 2b 2b 20 63 6c 61 | writing| C++ cla|
|00000280| 73 73 65 73 0a 3e 20 66 | 6f 72 20 6d 79 73 65 6c |sses.> f|or mysel|
|00000290| 66 20 77 69 74 68 20 6d | 65 74 68 6f 64 73 20 74 |f with m|ethods t|
|000002a0| 68 61 74 20 6d 69 6d 69 | 63 20 70 65 72 6c 20 66 |hat mimi|c perl f|
|000002b0| 75 6e 63 74 69 6f 6e 73 | 2c 20 61 6e 64 20 49 20 |unctions|, and I |
|000002c0| 77 61 6e 74 20 74 6f 20 | 69 6d 70 6c 65 6d 65 6e |want to |implemen|
|000002d0| 74 0a 3e 20 70 61 74 74 | 65 72 6e 20 6d 61 74 63 |t.> patt|ern matc|
|000002e0| 68 69 6e 67 2e 20 44 6f | 20 49 20 68 61 76 65 20 |hing. Do| I have |
|000002f0| 74 6f 20 73 74 61 72 74 | 20 66 72 6f 6d 20 73 63 |to start| from sc|
|00000300| 72 61 74 63 68 3f 0a 3e | 20 0a 0a 46 72 6f 6d 20 |ratch?.>| ..From |
|00000310| 74 68 65 20 70 65 72 6c | 72 65 20 6d 61 6e 70 61 |the perl|re manpa|
|00000320| 67 65 3a 0a 0a 20 20 54 | 68 65 20 70 61 74 74 65 |ge:.. T|he patte|
|00000330| 72 6e 73 20 75 73 65 64 | 20 69 6e 20 70 61 74 74 |rns used| in patt|
|00000340| 65 72 6e 20 6d 61 74 63 | 68 69 6e 67 20 61 72 65 |ern matc|hing are|
|00000350| 20 72 65 67 75 6c 61 72 | 20 65 78 70 72 65 73 73 | regular| express|
|00000360| 69 6f 6e 73 20 0a 20 20 | 73 75 63 68 20 61 73 20 |ions . |such as |
|00000370| 74 68 6f 73 65 20 73 75 | 70 70 6c 69 65 64 20 69 |those su|pplied i|
|00000380| 6e 20 74 68 65 20 56 65 | 72 73 69 6f 6e 20 38 20 |n the Ve|rsion 8 |
|00000390| 72 65 67 65 78 70 20 72 | 6f 75 74 69 6e 65 73 2e |regexp r|outines.|
|000003a0| 20 28 49 6e 20 66 61 63 | 74 2c 20 74 68 65 0a 20 | (In fac|t, the. |
|000003b0| 20 72 6f 75 74 69 6e 65 | 73 20 61 72 65 20 64 65 | routine|s are de|
|000003c0| 72 69 76 65 64 20 28 64 | 69 73 74 61 6e 74 6c 79 |rived (d|istantly|
|000003d0| 29 20 66 72 6f 6d 20 48 | 65 6e 72 79 20 53 70 65 |) from H|enry Spe|
|000003e0| 6e 63 65 72 27 73 0a 20 | 20 66 72 65 65 6c 79 20 |ncer's. | freely |
|000003f0| 72 65 64 69 73 74 72 69 | 62 75 74 61 62 6c 65 20 |redistri|butable |
|00000400| 72 65 69 6d 70 6c 65 6d | 65 6e 74 61 74 69 6f 6e |reimplem|entation|
|00000410| 20 6f 66 20 74 68 65 20 | 56 38 20 72 6f 75 74 69 | of the |V8 routi|
|00000420| 6e 65 73 2e 29 20 0a 20 | 20 53 65 65 20 56 65 72 |nes.) . | See Ver|
|00000430| 73 69 6f 6e 20 38 20 52 | 65 67 75 6c 61 72 20 45 |sion 8 R|egular E|
|00000440| 78 70 72 65 73 73 69 6f | 6e 73 20 66 6f 72 20 64 |xpressio|ns for d|
|00000450| 65 74 61 69 6c 73 2e 20 | 0a 0a 53 6f 20 67 65 74 |etails. |..So get|
|00000460| 20 53 70 65 6e 63 65 72 | 27 73 20 63 6f 64 65 2c | Spencer|'s code,|
|00000470| 20 61 6e 64 20 75 73 65 | 20 74 68 61 74 2e 0a 0a | and use| that...|
|00000480| 41 6e 64 20 69 66 20 79 | 6f 75 20 77 61 6e 74 20 |And if y|ou want |
|00000490| 74 6f 20 64 6f 20 61 20 | 4c 4f 54 20 6f 66 20 50 |to do a |LOT of P|
|000004a0| 65 72 6c 20 73 74 75 66 | 66 20 66 72 6f 6d 20 43 |erl stuf|f from C|
|000004b0| 2b 2b 2c 20 79 6f 75 20 | 63 61 6e 20 6a 75 73 74 |++, you |can just|
|000004c0| 0a 72 65 61 64 20 74 68 | 65 20 6d 61 6e 70 61 67 |.read th|e manpag|
|000004d0| 65 20 6f 6e 20 68 6f 77 | 20 74 6f 20 6c 69 6e 6b |e on how| to link|
|000004e0| 20 79 6f 75 72 20 43 2b | 2b 20 61 70 70 20 74 6f | your C+|+ app to|
|000004f0| 20 74 68 65 20 50 65 72 | 6c 20 6c 69 62 72 61 72 | the Per|l librar|
|00000500| 79 2c 0a 61 6e 64 20 63 | 61 6c 6c 20 74 68 61 74 |y,.and c|all that|
|00000510| 2e 20 20 54 68 69 73 20 | 77 69 6c 6c 20 67 69 76 |. This |will giv|
|00000520| 65 20 79 6f 75 20 66 75 | 6c 6c 20 61 63 63 65 73 |e you fu|ll acces|
|00000530| 73 20 74 6f 20 74 68 65 | 20 50 65 72 6c 20 69 6e |s to the| Perl in|
|00000540| 74 65 72 70 72 65 74 65 | 72 2e 0a 49 27 6d 20 67 |terprete|r..I'm g|
|00000550| 75 65 73 73 69 6e 67 20 | 74 68 61 74 20 74 68 61 |uessing |that tha|
|00000560| 74 27 73 20 6e 6f 74 20 | 77 68 61 74 20 79 6f 75 |t's not |what you|
|00000570| 20 77 61 6e 74 2e 2e 2e | 0a 0a 2d 2d 20 0a 20 20 | want...|..-- . |
|00000580| 20 5f 5f 5f 5f 20 20 20 | 20 20 20 20 20 20 20 20 | ____ | |
|00000590| 5f 5f 0a 20 20 2f 20 5f | 5f 2f 5f 5f 5f 5f 5f 5f |__. / _|_/______|
|000005a0| 5f 5f 5f 5f 2f 5f 2f 20 | 20 45 72 79 71 20 28 65 |____/_/ | Eryq (e|
|000005b0| 72 79 71 40 72 68 69 6e | 65 2e 67 73 66 63 2e 6e |ryq@rhin|e.gsfc.n|
|000005c0| 61 73 61 2e 67 6f 76 29 | 0a 20 2f 20 5f 5f 2f 20 |asa.gov)|. / __/ |
|000005d0| 5f 2f 20 2f 20 2f 20 2c | 20 2f 20 20 20 20 20 48 |_/ / / ,| / H|
|000005e0| 75 67 68 65 73 20 53 54 | 58 20 43 6f 72 70 6f 72 |ughes ST|X Corpor|
|000005f0| 61 74 69 6f 6e 2c 20 4e | 41 53 41 2f 47 6f 64 64 |ation, N|ASA/Godd|
|00000600| 61 72 64 0a 2f 5f 5f 5f | 2f 5f 2f 20 5c 20 20 2f |ard./___|/_/ \ /|
|00000610| 5c 20 20 2f 5f 5f 5f 20 | 0a 20 20 20 20 20 20 20 |\ /___ |. |
|00000620| 20 2f 5f 2f 20 2f 5f 5f | 5f 5f 5f 2f 20 20 20 68 | /_/ /__|___/ h|
|00000630| 74 74 70 3a 2f 2f 73 65 | 6c 73 76 72 2e 73 74 78 |ttp://se|lsvr.stx|
|00000640| 2e 63 6f 6d 2f 7e 65 72 | 79 71 2f 0a |.com/~er|yq/. |
+--------+-------------------------+-------------------------+--------+--------+